package com.hspedu.homework.homeowrk04;

import java.text.NumberFormat;

public class Worker extends Employee{
    NumberFormat nf = NumberFormat.getInstance();
    @Override
    public void PrintSalary(String name, double dailyWage, int day) {
        System.out.println("普通员工工资为:" + nf.format(dailyWage * day * 1.0));
    }
}
